<script setup lang="ts">
import {useMessage} from 'naive-ui';
const message=useMessage();
function greeting() {
  message.error('hello in child');
}
</script>

<template>
  <n-button @click="greeting">点击</n-button>
</template>

<style scoped>

</style>